﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace YSC_Core.BLL.Domain.Models
{
    /// <summary>
    /// token模型
    /// </summary>
    [DataContract]
    public class TokenModel
    {
        [DataMember(Name = "access_token")]
        public string AccessToken { get; set; }
        [DataMember(Name = "scope")]
        public string Scope { get; set; }
        [DataMember(Name = "userId")]
        public string UserId { get; set; }

        [DataMember(Name = "token_type")]
        public string TokenType { get; set; }

        [DataMember(Name = "userName")]
        public string UserName { get; set; }

        [DataMember(Name = "roleName")]
        public string RoleName { get; set; }

        [DataMember(Name = "roleArea")]
        public string RoleArea { get; set; }

        [DataMember(Name = "headPortraitUrl")]
        public string HeadPortraitUrl { get; set; }

        [DataMember(Name = "userHeadPortraitUrl")]
        public string UserHeadPortraitUrl
        {
            get; set;
        }

        [DataMember(Name = "roleId")]
        public string RoleId { get; set; }

        [DataMember(Name = "IsAttest")]
        public bool IsAttest { get; set; }

        [DataMember(Name = "attestName")]
        public string AttestName { get; set; }

        [DataMember(Name = "refresh_token")]
        public string RefToken { get; set; }
        [DataMember(Name = "expires_in")]
        public string expires_in { get; set; }
    }

    public class TokenDataModel
    {
        public string username { get; set; }
        public string password { get; set; }
        public string client_id { get; set; }
        public string client_secret { get; set; }
        public string grant_type { get; set; }
    }
}
